package beans;

import javax.faces.event.ActionEvent;

import oracle.adf.model.binding.DCIteratorBinding;
import oracle.adf.view.rich.component.rich.RichPopup;

import utils.ADFUtils;


public class InfoFishBean {
    private RichPopup infoPopup;

    public InfoFishBean() {
        super();
    }

    public void resetOccurenceAndShopInfo(ActionEvent actionEvent) {
        infoPopup.show(new RichPopup.PopupHints());
        DCIteratorBinding iter = ADFUtils.findIterator("FishOccurrenceViewAllIterator");
        iter.executeQuery();
    }

    public void setInfoPopup(RichPopup infoPopup) {
        this.infoPopup = infoPopup;
    }

    public RichPopup getInfoPopup() {
        return infoPopup;
    }
}
